package com.ihrm.company.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ihrm.domain.company.CoCompany;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 自定义dao接口继承
 *      JpaRepository<实体类 类型，主键 类型>
 *      JpaSpecificationExecutor<实体类 类型>
 */
//public interface CompanyMapper extends JpaRepository<Company,String> ,JpaSpecificationExecutor<Company> {
//}

@Mapper
public interface CompanyMapper extends BaseMapper<CoCompany> {

    @Select("SELECT * FROM co_company")
    List<CoCompany> findAll();
}